Skip to content

Conversation

timl3136
Copy link
Member

@timl3136 timl3136 commented Oct 7, 2025

What changed?

  • Added WorkflowDefinition class with type-safe wrapper for workflow functions, including .fn, .name, and .params properties for metadata access
  • Registry now stores WorkflowDefinition internally instead of raw callables, with get_workflow() returning the typed wrapper
  • Introduced WorkflowParameter dataclass for parameter introspection (name, type hints, defaults) and @defn decorator for standalone workflow definition

Why?

  • Enables compile-time type checking via mypy and better IDE support, consistent with existing ActivityDefinition pattern
  • Enables parameter validation, automatic API documentation, dynamic workflow discovery, and better error messages

How did you test it?
unit tests

Potential risks

Release notes

Documentation Changes

@timl3136 timl3136 changed the title Add WorkflowDefinition Add WorkflowDefinition instead of callable Oct 7, 2025
@timl3136 timl3136 changed the title Add WorkflowDefinition instead of callable Register workflow via WorkflowDefinition instead of raw callable Oct 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant